# -*- coding: utf-8 -*- 
# @Time : 2021-07-22 23:22 
# @Author : derek.zhang 
# @File : serializers.py 
# @Software: PyCharm

from rest_framework import serializers

class UserSerializer(serializers.Serializer):
    '''
    用户序列化类
    '''
    id = serializers.IntegerField()
    username = serializers.CharField()
    email = serializers.EmailField()